# add an executable for MakeTable
add_executable(MakeTable MakeTable.cxx)

# link the executable to the tutorial_compiler_flags library
target_link_libraries(MakeTable PRIVATE tutorial_compiler_flags)

# add a custom command that specifies how to produce Table.h by running MakeTable
add_custom_command(
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Table.h
  COMMAND MakeTable ${CMAKE_CURRENT_BINARY_DIR}/Table.h
  DEPENDS MakeTable
  )
